home *** CD-ROM | disk | FTP | other *** search
- /****************************************************************************************
- MenuList.c
-
- Copyright © 1999 Red Shed Software. All rights reserved.
- by Jonathan 'Wolf' Rentzsch (jon@redshed.net)
-
- Commenter Date Comment
- --------- ----------------- -----------------------------------------------------
- wolf Fri, Jun 25, 1999 Created.
-
- ************************************************************************************/
-
- #include "MenuList.h"
-
- MenuListHandle gMenuList = nil;
-
- /****************************************************************************************
- Commenter Date Comment
- --------- ----------------- -----------------------------------------------------
- wolf Sat, Jun 26, 1999 Created.
-
- ************************************************************************************/
-
- MenuListHandle
- GetMenuList()
- {
- return( gMenuList );
- }
-
- /****************************************************************************************
- Commenter Date Comment
- --------- ----------------- -----------------------------------------------------
- wolf Sat, Jun 26, 1999 Created.
-
- ************************************************************************************/
-
- MenuListHandle
- GetCurrentMenuList()
- {
- gMenuList = (MenuListHandle) LMGetMenuList();
- return( gMenuList );
- }
-
- /****************************************************************************************
- Commenter Date Comment
- --------- ----------------- -----------------------------------------------------
- wolf Thu, Jun 24, 1999 Created.
-
- ************************************************************************************/
-
- bool
- ExtractMenuIcon(
- MenuHandle menu,
- Handle &iconSuite )
- {
- UInt8 *data = (**menu).menuData;
- bool result = false;
-
- if( data[ 0 ] == 0x05 && data[ 1 ] == 0x01 ) {
- iconSuite = *(Handle*) &data[ 2 ];
- result = true;
- }
-
- return( result );
- }